home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / ddj0897.zip / DYN401.ZIP / docs / BUILD.DOC next >
Text File  |  1997-04-16  |  3KB  |  107 lines

  1.  
  2. Build instructions:
  3.  
  4. Thare are two sections labeled DOS / all Windows, and Linux/Unix.
  5.  
  6. Assuming DR is your dynace root directory such as  c:\dynace
  7. and go to the appropriate section.
  8.  
  9.  
  10. DOS / all Windows
  11. -----------------
  12.  
  13.  
  14. First make sure that your command line compiler is set up correctly.
  15. I suggest that you create a "Hello, World" program and compile and
  16. link it from the command line to be sure it's all set up correctly.
  17.  
  18. Next, goto the DR directory and if you are operating under the DOS or
  19. Windows 3.1 OS you should edit the file named 16bit.bat.  Otherwise,
  20. edit 32bit.bat.  The file will tell you what to do.
  21.  
  22. Next execute the file you just edited by typing:
  23.  
  24. 16bit
  25.  or
  26. 32bit
  27.  
  28. The following table indicates the correct makefile for each supported
  29. environment:
  30.  
  31. M16.DM        Microsoft C 16 bit
  32. M32.DM        Microsoft C 32 bit
  33. B16.DM        Borland C 16 bit  (requires tasm.exe - their assembler)
  34. B32.DM        Borland C 32 bit  (requires tasm32.exe - their assembler)
  35. W32.DM        Watcom C 32 bit
  36. S32.DM        Symantec C 32 bit (not tested recently)
  37.  
  38. Assuming MF is the appropriate makefile for your environment, type:
  39. (Note: the case does matter.)
  40.  
  41. cd DR
  42. dmake -f MF STRAT=-S1 newgens
  43. dmake -f MF all-scratch
  44.  
  45. If you have trouble with the top level make (perhaps in DOS) you may
  46. need to look at what it's doing and do it by hand.
  47.  
  48. You may want to do the following:
  49.  
  50. Add DR\include to your compiler's include search path
  51. Add DR\lib to your linker's library search path
  52.  
  53. After you have everything built and setup you may want to go to
  54. DR/examples/exam01 and see the readme file for the Dynace language
  55. examples (tutorial).
  56.  
  57.  
  58. Linux / Unix
  59. ------------
  60.  
  61. GNU make and gcc are assumed.
  62.  
  63. cd DR
  64. make -f makefile.unx
  65.  
  66. At this point the system is built in the portable (but slower) mode.
  67. You can test it by going into examples/exam03, building and running
  68. the example using the following commands:
  69.  
  70. cd examples/exam03
  71. make -f makefile.unx
  72. main
  73.  
  74. If you are operating under a 386 Linux/Unix you should be able to
  75. rebuild using the faster mode which relies on an assembler piece.
  76. To do this just type the following commands (after the above commands):
  77.  
  78. cd DR
  79. make -f makefile.unx STRAT=-S1 newgens
  80. make -f makefile.unx realclean
  81. (edit kernel/makefile.unx to enable the inclusion of JUMPTO)
  82. make -f makefile.unx
  83.  
  84.  
  85. You should then clean and re-run the example program as follows:
  86.  
  87. cd examples/exam03
  88. make -f makefile.unx clean
  89. make -f makefile.unx
  90. main
  91.  
  92. If you have any trouble linking it may be due to a different version of
  93. GCC.  You may want to try a different jumpto assembler piece.  See
  94. kernel/makefile.unx  and  kernel/jumpto/*
  95. That directory contains jumpto assembler routines for several machines.
  96.  
  97.  
  98. You can then type the following line in order to remove the .unx file
  99. extension from all makefiles and negate the need for the "-f makefile.unx"
  100. make option for the remainder of the system and example builds.
  101.  
  102. dropunx.sh
  103.  
  104. After you have everything built and setup you may want to go to
  105. DR/examples/exam01 and see the readme file for the Dynace language
  106. examples (tutorial).
  107.